package com.blog.common.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 文章点赞数、浏览量
 * </p>
 *
 * @author Vivian
 * @date 2023/7/2
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("tb_article")
@ApiModel(value = "文章点赞数、浏览量", description = "文章点赞数、浏览量")
public class ArticleInfo {

    /** 主键 */
    @TableId
    @ApiModelProperty("主键")
    private Long id;

    /** 文章id */
    @TableField("article_id")
    @ApiModelProperty("文章id")
    private Long articleId;

    /** 点赞数 */
    @TableField("like_count")
    @ApiModelProperty("点赞数")
    private Long likeCount;

    /** 浏览量 */
    @TableField("view_count")
    @ApiModelProperty("浏览量")
    private Long viewCount;

    /** 是否删除 */
    @TableField("is_delete")
    @ApiModelProperty("是否删除")
    private Long isDelete;

    /** 创建时间 */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Long createTime;

    /** 修改时间 */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @ApiModelProperty("修改时间")
    private Long updateTime;
}
